<?php
if(@$_REQUEST['enviarasignaciones'])
{
	$arr['personas']=$_REQUEST['personas'];
	$arr['idevento']=@$_REQUEST['idevento'];
	$arr = serialize($arr);
	$arr = base64_encode($arr);
	echo "enviar a esta direccion";
	$dir="index.php?action=add&module=asignaciones&info=$arr";
	printf("<script>location.href='$dir'</script>");
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>

<body>
<br>

<input type="hidden" name="idevento" value="<?=$ev->id ?>"/>
<form id="form1" name="form1" method="post" action="">
 <strong>Evento:</strong> <?=$ev->nombreEvento ?>
  <p></p>
  <table>
    <tr>
    	<th>Empleados</th>
    </tr>
    <tr>
    <td>
    <select name="personas[]" multiple="multiple"  size="10">
		<?php 
		foreach($emps as $key => $v){
		?>
		<option value="<?=$v->id ?>"><?=$v->nombre ?> [id= <?=$v->id ?> ] </option>
		<? }?>
    </select>
    </td>
    </tr>
  </table>


<input type="submit" value="enviar"  name="enviarasignaciones"/>
</form>
</body>
</html>
